package com.rgs.platform.filter;

import com.rgs.base.database.sql.ISqlFilter;
import com.rgs.base.database.sql.LikeTypeEnum;
import com.rgs.base.database.sql.SqlFilterAnnotation;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * @author Ren Gaoshuai
 * @ClassName LendInfoFilterDTO
 * @date 2022-11-30 11:18
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class LendInfoFilterDTO implements ISqlFilter {

    @SqlFilterAnnotation(columnName = "id")
    private String id;
    @SqlFilterAnnotation(columnName = "lendName", likeType = LikeTypeEnum.FULL)
    private String lendName;
    @SqlFilterAnnotation(columnName = "money")
    private Integer money;
    @SqlFilterAnnotation(columnName = "lendTime")
    private LocalDateTime lendTime;
    @SqlFilterAnnotation(columnName = "isBack")
    private Integer isBack;
    @SqlFilterAnnotation(columnName = "backTime")
    private LocalDateTime backTime;
    @SqlFilterAnnotation(columnName = "createTime")
    private LocalDateTime createTime;
    @SqlFilterAnnotation(columnName = "lendType")
    private Integer lendType;


    private String orderByClause;
}
